.class Lcom/melesta/engine/EngineActivity$1$1;
.super Ljava/lang/Object;
.source "EngineActivity.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/melesta/engine/EngineActivity$1;->onServiceReady()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/melesta/engine/EngineActivity$1;


# direct methods
.method constructor <init>(Lcom/melesta/engine/EngineActivity$1;)V
    .locals 0
    .parameter

    .prologue
    .line 292
    iput-object p1, p0, Lcom/melesta/engine/EngineActivity$1$1;->this$1:Lcom/melesta/engine/EngineActivity$1;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    .prologue
    .line 297
    :try_start_0
    const-string v3, "amazonGC"

    const-string v4, "ready"

    invoke-static {v3, v4}, Lcom/melesta/engine/Log;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 298
    invoke-static {}, Lcom/amazon/ags/api/AmazonGamesClient;->getInstance()Lcom/amazon/ags/api/AmazonGames;

    move-result-object v3

    invoke-interface {v3}, Lcom/amazon/ags/api/AmazonGames;->getWhisperSyncClient()Lcom/amazon/ags/api/whispersync/WhisperSyncClient;

    move-result-object v2

    .line 299
    .local v2, whisperSync:Lcom/amazon/ags/api/whispersync/WhisperSyncClient;
    new-instance v1, Lcom/amazon/ags/api/whispersync/SynchronizeBlobRequest;

    sget-object v3, Lcom/melesta/engine/EngineActivity;->mWhispersyncBlobCallback:Lcom/amazon/ags/api/whispersync/SynchronizeBlobCallback;

    invoke-direct {v1, v3}, Lcom/amazon/ags/api/whispersync/SynchronizeBlobRequest;-><init>(Lcom/amazon/ags/api/whispersync/SynchronizeBlobCallback;)V

    .line 301
    .local v1, syncBlobRequest:Lcom/amazon/ags/api/whispersync/SynchronizeBlobRequest;
    sget-object v3, Lcom/amazon/ags/constants/whispersync/ConflictStrategy;->AUTO_RESOLVE_TO_CLOUD:Lcom/amazon/ags/constants/whispersync/ConflictStrategy;

    invoke-virtual {v1, v3}, Lcom/amazon/ags/api/whispersync/SynchronizeBlobRequest;->setConflictStrategy(Lcom/amazon/ags/constants/whispersync/ConflictStrategy;)V

    .line 302
    invoke-interface {v2, v1}, Lcom/amazon/ags/api/whispersync/WhisperSyncClient;->synchronize(Lcom/amazon/ags/api/whispersync/SynchronizeBlobRequest;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 306
    .end local v1           #syncBlobRequest:Lcom/amazon/ags/api/whispersync/SynchronizeBlobRequest;
    .end local v2           #whisperSync:Lcom/amazon/ags/api/whispersync/WhisperSyncClient;
    :goto_0
    return-void

    .line 303
    :catch_0
    move-exception v0

    .line 304
    .local v0, e:Ljava/lang/Exception;
    invoke-static {v0}, Lcom/melesta/engine/Error;->processException(Ljava/lang/Exception;)V

    goto :goto_0
.end method
